package com.antoco.operation.bigscreen.model.dto;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value="SuiweiWatchDTO")
public class SuiweiWatchDTO {

    @NotNull(message = "区域标识不能为空")
    @ApiModelProperty(value = "区域标识", example="1")
    private String areaId;

    @NotNull(message = "区域名称不能为空")
    @ApiModelProperty(value = "区域名称", example="人民路")
    private String areaName;

    @NotNull(message = "水位值不能为空")
    @Min(value = 0, message = "水位值必须是正整数")
    @Digits(integer = 10, fraction = 0, message = "水位值必须是整数")
    @ApiModelProperty(value = "水位值", example="200")
    private String suiweiVal;

    @ApiModelProperty(value = "水位监测异常定义-正常区间", example="200")
    private String normalVals;

    @ApiModelProperty(value = "水位监测异常定义-预警区间", example="200")
    private String alarmVals;

    @ApiModelProperty(value = "水位监测异常定义-报警区间", example="200")
    private String warnVals;
}